package pl.edu.agh.model.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;
import pl.edu.agh.model.core.Price;

import java.util.Date;
import java.util.List;

@Transactional
public interface PriceDao extends JpaRepository<Price, String> {
    List<Price> findByDateBetweenAndDescriptionOrderByDateAsc(Date start, Date end, String desc);
    List<Price> findByDescriptionOrderByDateAsc(String desc);
}
